package org.e_gold.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@NamedQueries({
	@NamedQuery(
			name = "findCookieByName", 
			query = "from Cookie c where c.name = :name AND c.browserType = :browserType")
	,@NamedQuery(
			name = "findCookieByBrowserType", 
			query = "from Cookie c where c.browserType = :browserType")
	, })
@Entity
@Table(name = "cookie")
public class Cookie extends ValueObject implements Serializable {

	private static final long serialVersionUID = 1L;

	private String name;
	private String value;
	private String browserType;

	@Id
	@GeneratedValue
	private Long id;

	public String getBrowserType() {

		return browserType;
	}

	public void setBrowserType(String browserType) {

		this.browserType = browserType;
	}

	public Long getId() {

		return id;
	}

	public void setId(Long id) {

		this.id = id;
	}

	public String getName() {

		return name;
	}

	public void setName(String name) {

		this.name = name;
	}

	public String getValue() {

		return value;
	}

	public void setValue(String value) {

		this.value = value;
	}

}
